<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
		<link rel="stylesheet" type="text/css" href="../../css/style.css" />
		<style type="text/css">
			/*校验结果*/

			.result{ padding: 80px 0 55px; text-align: center; color: #808080; font-size: 12px; line-height: 20px; background-color: #fff;}
			.result img{ margin:0 auto; width: 80px;}
			.result b{ display:block; font-size: 16px; color: #333; padding-top: 25px; line-height: 35px;}
			.pay_btn{ padding: 0 15px;}
			.pay_btn .btn{ background-color:#3262F1;}
		</style>
	</head>
	<body>
		<!--校验结果start-->
		<div class="result">
		  <img id="icon" src="images/img_13.png" alt="" />
			<b id="title"></b>
			<p id="msg"></p>
		</div>
		<div class="pay_btn">
			<button class="d_btn" id="login-btn" tapmode onclick="closeWin();">--</button>
		</div>
		<!--校验结果end-->
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript">
		var winName = '';//返回的窗口名
		apiready = function() {
			api.parseTapmode();
			console.log('../../image/'+api.pageParam.icon);
			if(api.pageParam.icon == 'paysuccess.png') {
				$api.css($api.dom('.result'),'padding: 15px 0 55px;');
				$api.css($api.byId('icon'),'width:200px');
			}
			$api.attr($api.byId('icon'),'src','../../image/'+api.pageParam.icon);
			$api.text($api.byId('title'),api.pageParam.title);
			$api.html($api.byId('msg'),api.pageParam.msg);
			$api.text($api.byId('login-btn'),api.pageParam.btntxt);
			winName = api.pageParam.winname;
		}
		function closeWin(){
			console.log(winName);
			api.closeToWin({
				name: winName
			});
		}
	</script>
</html>